package com.ynkbny.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.sql.Date;

/**
 * @author zelin.wang
 * @description 用户信息
 * @date 8/14/2023
 */
@Data
@ApiModel(value = "用户表")
@TableName("user")
public class User implements Serializable {
    @ApiModelProperty(value = "用户ID", example = "1")
    @TableId(type = IdType.AUTO)
    int id;
    @ApiModelProperty(value = "登录用户名", example = "zhangsan")
    String userName;
    @ApiModelProperty(value = "密码", example = "123456")
    String password;
    @ApiModelProperty(value = "昵称(显示名称)", example = "张三")
    String nickName;
    @ApiModelProperty(value = "角色id", example = "1")
    String roleId;
    @ApiModelProperty(value = "盐", example = "SJIOWNE%2SOI")
    String salt;
    @ApiModelProperty(value = "创建时间", example = "2023-06-06 13:23:10")
    Date creatTime;
    @ApiModelProperty(value = "父id",example = "1")
    int upId;
}
